package com.rongji.cms.tools.es.service;

import com.rongji.cms.tools.es.domain.entity.CmsArticle;

import java.util.List;
import java.util.Map;

public interface CmsArticleService {

    /**
     * 批量插入
     *
     * @param cmsArticleList
     * @return
     */
    int batchInsert(List<CmsArticle> cmsArticleList);

    /**
     * 批量删除
     *
     * @param arIds
     */
    void batchDeleteByIds(List<String> arIds);

    /**
     * 按条件eq查询出总数
     */
    long searchNumByAllEq(Map<String, Object> map);

    /**
     * 按条件eq查询出具体值
     *
     * @param map
     * @return
     */
    List<CmsArticle> searchByAllEq(Map<String, Object> map);

    List<String> getArIds(Map<String, Object> map, int pageSize);

}
